Split out the flushing of outstanding moves
authorAlexander Larsson <alex@localhost.localdomain>
Thu, 22 Jan 2009 19:50:06 +0000 (20:50 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:25 +0000 (10:15 +0200)
Some places need to only flush the outstanding moves, split
this into gdk_window_flush_outstanding_move

gdk/gdkwindow.c

index b63d8f6a43c0b668f3758b742358c4b34b213239..ac2aa3651b34a00a4b082dcd81910a1c1b5c6946 100644 (file)
@@ -241,6 +241,7 @@ static void remove_redirect_from_children (GdkWindowObject   *private,
 static void recompute_visible_regions   (GdkWindowObject *private,
                                         gboolean recalculate_siblings,
                                         gboolean recalculate_children);
+static void gdk_window_flush_outstanding_moves (GdkWindow *window);
 static void gdk_window_flush            (GdkWindow *window);
 static void gdk_window_flush_recursive  (GdkWindowObject *window);
 static void do_move_region_bits_on_impl (GdkWindowObject *private,
@@ -2596,7 +2597,7 @@ move_region_on_impl (GdkWindowObject *private,
  * before drawing directly to the window (i.e. outside a begin/end_paint pair).
  */
 static void
-gdk_window_flush (GdkWindow *window)
+gdk_window_flush_outstanding_moves (GdkWindow *window)
 {
   GdkWindowObject *private;
   GdkWindowObject *impl_window;
@@ -2621,7 +2622,12 @@ gdk_window_flush (GdkWindow *window)
   
   g_list_free (impl_window->outstanding_moves);
   impl_window->outstanding_moves = NULL;
-  
+}
+
+static void
+gdk_window_flush (GdkWindow *window)
+{
+  gdk_window_flush_outstanding_moves (window);
   gdk_window_flush_implicit_paint (window);
 }